package site.xiaodi.mybatisstudent.mapper;

import org.apache.ibatis.annotations.Mapper;
import site.xiaodi.mybatisstudent.po.Customer;

import java.util.List;

/**
 * @author xiao
 * @email 245938767@qq.com
 * @gitee https://gitee.com/liu_yong_qiee/
 * @date 2021/10/27 9:10 上午
 */
@Mapper
public interface CustomerMapper {
    Customer findCustomerById(Integer id);
    Customer findCustomerByName (String value);
    List<Customer>findCustomerByIds(List<Integer> list);
    int addCustomer(Customer customer);
    int updateCustomer(Customer customer);
    List<Customer> findCustomerByNameOrJobs(Customer customer);
    List<Customer> findCustomerByNameAndJobs(Customer customer);
    int deleteCustomer (Integer id);
}
